from random import choice

score=[0,0]
direction=['left','center','right']

def kick():
    print('=====you kick!=====')
    print('Please choose one side to shoot:')
    print('left,center,right')
    you=input()
    print('you kick'+you)
    com=choice(direction)
    print('computer saved'+com)
    if you !=com:
        print('good job!')
        score[0]+=1
    else:
        print('sorry...')
    print('Score:%d-%d\n'%(score[0],score[1]))


    print('===you save===')
    print('Please choose one side to save:')
    print('left,center,right,')
    you=input()
    print('you saved'+you)
    com=choice(direction)
    print('computer kicked'+com)
    if you == com:
        print('saved!')
    else:
        print('sorry')
        score[1]+=1
    print('Score:%d-%d\n'%(score[0],score[1]))

for i in range(5):
    print('====Round%d===='%(i+1))
    kick()

while(score[0]==score[1]):
    i+=1
    print('===Round%d===='%(i+1))
    kick()
    
if score[0]>score[1]:
    print('you win')
else:
    print('you loss')
